{% extends 'base.html' %}

{% block title %} Comment Change {% endblock %}

{% block content %}

<h3> 
	{% if editable %}
		Edit 
	{% elif deletable %}
		Delete
	{% endif %}
	Comment
</h3>

{% if editable %}
	<form method='post'> {% csrf_token %}
{% elif deletable %}
	<form method='post'> {% csrf_token %}
{% endif %}
<fieldset name="comment_edit">
{{ comment.as_p }}
</fieldset>
<span name="buttons">
{% if editable %}
	<input type='submit' value='Save'>	
	</form>
	<form action='/task/view/{{ taskid }}' method="get">
    <input type="submit" value="Back" />
    </form>
{% elif deletable %}
	<input type='submit' value='Delete'>
	</form>
	<form action='/task/view/{{ taskid }}' method="get">
    <input type="submit" value="Back" />
    </form>

{% else %}
    <ul>
			<li><a href='/tasks/'>Back</a></li>
			
	</ul>
</span>	
{% endif %}

{% endblock %}
